import Cookies from 'js-cookie'

const TokenKey = 'token'
const userInfo = 'userInfo'
export function getToken() {
  return Cookies.get(TokenKey)
}
export function setToken(data) {
  return Cookies.set(TokenKey, data)
}
export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function getUserInfo() {
    return Cookies.get(userInfo)
  }
  export function setUserInfo(data) {
    return Cookies.set(userInfo, data)
  }
  export function removeUserInfo() {
    return Cookies.remove(userInfo)
  }